{ext->tree_get_fields assign="elements" id=$data.page.id}
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td>
<table cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="22" style="font-weight:bold">{if $smarty.get.translate}{t t='Svetainės vertimai'}{else}{t t='Svetainės nuostatų valdymas'}{/if}</td>	
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td>{t t='Pasirinkite kalbą'}:</td>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td>		
		<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1'+this.value">
		  {foreach from=$data.tree.lang item="el"}
		  <option value="&lang={$el.name}&id={ext->get_site_settings_id lang=$el.name}&{if $smarty.get.translate}&translate=1{/if}" {if $data.tree.lng.cur|lower==$el.name|lower}selected{/if}>{$el.name}</option>
		  {/foreach}
		</select>		
		</td>
		{if $_var.options.sitemap.google == 1}
		<td valign="top">
			<form action="index.php" method="post" name="form{$data.page.id}_sitemap" enctype="multipart/form-data">
			<input name="admin" type="hidden" value="1">
			<input name="mod" type="hidden" value="sitemap">
			<input name="act" type="hidden" value="google">
			<input type="hidden" name="referer" value="{ext->get_referer}">
			<input onClick="doSubmit('form{$data.page.id}_sitemap'); return false;" type="button" value="{t t='Create sitemaps'} (google.com, yahoo.com)"  class="defaultFormButton" style="margin-left:10px; height:18px; width:240px;" />
			</form>
		</td>
		{/if}
		{if $_var.options.translate == 1}
		<td valign="top">
			<input onClick="window.location='index.php?admin=1&id={$data.page.id}&translate=1'" type="button" value="{t t='Vertimai'}" class="defaultFormButton" style="margin-left:10px; height:18px; width:100px;" />
		</td>
		{/if}
		{if $smarty.get.translate}
		<td valign="top">
			<input onClick="window.location='index.php?admin=1&id={$data.page.id}'" type="button" value="{t t='Svetainės nuostatų valdymas'}" class="defaultFormButton" style="margin-left:10px; height:18px; width:200px;" />
		</td>
		{/if}
		<td valign="top" width="100">
			<input onClick="window.location='index.php?admin=1&id={$data.page.id}&cacheDel=1'" type="button" value="{t t='Šalinti laikinus failus'}" class="defaultFormButton" style="margin-left:10px; height:18px; width:140px;" />
		</td>		
	</tr>
</table>
	</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#D9DFE3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{if !$smarty.get.translate}
<form action="index.php" method="post" name="form{$data.page.id}" enctype="multipart/form-data">
<input name="admin" type="hidden" value="1">
<input name="body" type="hidden" value="{$smarty.session.body}">
<input name="show_menu" type="hidden" value="{$smarty.get.show_menu}">
<input name="mod" type="hidden" value="product">
<input name="act" type="hidden" value="mod">
<input name="id_type" type="hidden" value="{$data.page.type}">
<input name="parent" type="hidden" value="{$data.page.id}">
<input type="hidden" name="referer" value="{ext->get_referer}">
{include file="admin/body/fields/selector.html"}
<input onClick="doSubmit('form{$data.page.id}'); return false;" type="button" value="{t t='Išsaugoti pakeitimus'}" class="defaultFormButton" style="margin:10px ">
{else}
	{ext->get_print2_translate assign="print2_array"}
	<form action="index.php" method="post" name="tform{$data.page.id}" enctype="multipart/form-data">
	<input name="admin" type="hidden" value="1">
	<input name="mod" type="hidden" value="savetranslate">
	<input name="act" type="hidden" value="savetranslate">
	<input type="hidden" name="referer" value="{ext->get_referer}">
	
	{foreach from=$print2_array key="key" item="item"}
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">	
		<tr>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="25%" height="25" class="defaultFormLabel">{$key}</td>
			<td>
				<input type="text" name="data[{$key|base64_encode}]" value="{$item|escape:"html"}"  class="defaultInputText">
			</td>		
		</tr>
	</table>
	{/foreach}
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td height="2" bgcolor="#D9DFE3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
		</tr>
	</table>
	<input onClick="doSubmit('tform{$data.page.id}'); return false;" type="button" value="{t t='Išsaugoti pakeitimus'}" class="defaultFormButton" style="margin:10px ">
{/if}
{if $_var.options.sitemap.google == 1}
	{if $smarty.session.sitemap.result != 0}
		<script language="javascript1.4" type="text/javascript">
			var str = String;
			str = '';
			{if $smarty.session.sitemap.result.permission_error}
				str = "{t t='Rašymo klaida!'}";
			{else}
				{if $smarty.session.sitemap.result.create_file_error}
					str += "{t t='Sukurimo klaida!'}\n";
				{/if}
				{if $smarty.session.sitemap.result.create_file_ok}
					str += "{t t='Failas'}: {$_http_path}/sitemap.xml {t t='sukurtas'}\n";
					str += "{t t='Failas'}: {$_http_path}/sitemap.xml.gz {t t='sukurtas'}\n";
					str += "{t t='Failas'}: {$_http_path}/urllist.txt {t t='sukurtas'}\n";
					str += "{t t='Failas'}: {$_http_path}/urllist.gz {t t='sukurtas'}\n";
				{/if}
				{if $smarty.session.sitemap.result.send_file_error}
					str += "{t t='Nepavyko išsiusti į google.com serverį!'}\n";
				{/if}
				{if $smarty.session.sitemap.result.send_file_ok} 
					str += "{t t='Nuorodos sekmingai išsiusti į google.com serverį.'}\n";
				{/if}
			{/if}
			alert(str);
		</script>
	{/if}
	{unset_session var="sitemap"}
{/if}
{if $smarty.get.cacheDel == "1"}
	<script language="javascript1.4" type="text/javascript">
		alert("{t t='Laikini failai sekmingai pašalinti'}");
	</script>
{/if}
